package com.ruoyi.clf.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 服务评价对象 evaluate
 * 
 * @author clf
 * @date 2025-05-10
 */
public class Evaluate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 商家编号 */
    @Excel(name = "商家编号")
    private Long merchantId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderId;

    /** 星级【一旦评价，则修改商家的整体总星级】 */
    @Excel(name = "星级【一旦评价，则修改商家的整体总星级】")
    private Long rate;

    /** 评价图片【集合图片】 */
    @Excel(name = "评价图片【集合图片】")
    private String imgs;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String content;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 状态（1、待审核 2、审核通过 3、审核失败） */
    @Excel(name = "状态", readConverterExp = "1=、待审核,2=、审核通过,3=、审核失败")
    private Long status;

    /** 删除状态 */
    private Long deleted;

    private String username;
    private String avatar;

    /** $column.columnComment */
    private String reserved1;

    /** $column.columnComment */
    private String reserved2;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setRate(Long rate) 
    {
        this.rate = rate;
    }

    public Long getRate() 
    {
        return rate;
    }

    public void setImgs(String imgs) 
    {
        this.imgs = imgs;
    }

    public String getImgs() 
    {
        return imgs;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    public void setReserved1(String reserved1) 
    {
        this.reserved1 = reserved1;
    }

    public String getReserved1() 
    {
        return reserved1;
    }

    public void setReserved2(String reserved2) 
    {
        this.reserved2 = reserved2;
    }

    public String getReserved2() 
    {
        return reserved2;
    }

    @Override
    public String toString() {
        return "Evaluate{" +
                "id=" + id +
                ", userId=" + userId +
                ", merchantId=" + merchantId +
                ", orderId='" + orderId + '\'' +
                ", rate=" + rate +
                ", imgs='" + imgs + '\'' +
                ", content='" + content + '\'' +
                ", time=" + time +
                ", status=" + status +
                ", deleted=" + deleted +
                ", username='" + username + '\'' +
                ", avatar='" + avatar + '\'' +
                ", reserved1='" + reserved1 + '\'' +
                ", reserved2='" + reserved2 + '\'' +
                '}';
    }
}
